<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>直接在构造器的template模板中编写代码</title>
<!--引入Vue库-->
<script src="vue.js"></script>
</head>
<body>	
<div id="app">
</div>
<script type="text/javascript">
  var vm=new Vue({ 
      el: '#app',
      data: {
          info: '图书详情'			  
         },
      template:`<p style="color:red">{{ this.info }}</p>`
   });
</script>
</body>
</html>